#

pkgname=xfce4-power-manager
pkgver=1.0.10
pkgrel=2
pkgdesc="power manager for Xfce desktop"
arch=('ppc')
license=('GPL2')
url="http://goodies.xfce.org/projects/applications/xfce4-power-manager"
groups=('xfce4-goodies')
depends=('gtk2' 'glib2' 'dbus-glib' 'xfconf' 'libxfce4ui' 'libxfce4util' \
				'libnotify' 'libxrandr' 'libx11' 'polkit' 'xfce4-panel' \
				'upower' 'udisks' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('pkg-config' 'intltool' 'gettext')
options=('!libtool')
install=${pkgname}.install
source=(http://archive.xfce.org/src/apps/${pkgname}/1.0/${pkgname}-${pkgver}.tar.bz2)
md5sums=('38cbd272eb30e36ae538d9f38858bd38')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  
  sh configure --prefix=/usr \
		 --sysconfdir=/etc \
		 --libexecdir=/usr/lib/xfce4 \
		 --localstatedir=/var \
		 --disable-static \
		 --enable-nls \
		 --disable-network-manager \
		 --enable-panel-plugins \
		 --enable-polkit \
		 --enable-dpms
  
	make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install
}
